<html>
<head>
<title>Prova BarCode</title>
</head>
<body>
<p align=center>Prova</p>
</form>
<?
	if(isset($_GET['Convertir'])){
		Require_once 'Image/Barcode.php'; 
		//Image_Barcode::draw('1234', 'code128', 'png');
		echo "ok";	
	}
	
	else{
?>
		<form name=form1 action="provaBarcode.php" method="GET">
        		<input id=TextDNI type=text name=DNI>
        		<input type="submit" value="Convertir" name='Convertir' />
		</form>
<?	}

?>
<!-- COMENTARI AFEGIT PER FER PROVES AMB SVC -->
</BODY>
</HTML>
